TARGETS = io_uring_cat io_uring_app
all: $(TARGETS)

CC = gcc
CCFLAGS = -g

LIBS = -luring

%.o:%.c
	$(CC) $(CCFLAGS) -c $< -o $@

io_uring_cat: io_uring_cat.o
	$(CC) $(CCFLAGS) $^ -o io_uring_cat $(LIBS)

io_uring_app: io_uring_app.o iouring_lib.o
	$(CC) $(CCFLAGS) $^ -o io_uring_app $(LIBS)
.PHONY: clean
clean:
	rm -rf $(TARGETS) *.o